//
//  MPlusHumanitiesTableViewCell.m
//  medicineplus
//
//  Created by gufei on 15-5-18.
//  Copyright (c) 2015年 chn_ruby@126.cn. All rights reserved.
//

#import "MPlusHumanitiesTableViewCell.h"
#import "MPlusDefine.h"

#define IMAGE_HEIGHT 112
#define IMAGE_WIDTH (SCREEN_WIDTH-PADDING_5*2-PADDING_10*2)/3
#define CELL_HEIGHT 164

@implementation MPlusHumanitiesTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        _aTitle = [[UILabel alloc] initWithFrame:CGRectMake(PADDING_10, PADDING_10, SCREEN_WIDTH-PADDING_10*2, LABEL_HEIGHT_22)];
        _aTitle.font = [UIFont systemFontOfSize:[kFontSize16 floatValue]];
        [self addSubview:_aTitle];
        
        _aImage1 = [[UIImageView alloc] initWithFrame:CGRectMake(PADDING_10, PADDING_10*2+LABEL_HEIGHT_22, IMAGE_WIDTH, IMAGE_HEIGHT)];
        [self addSubview:_aImage1];
        
        _aImage2 = [[UIImageView alloc] initWithFrame:CGRectMake(PADDING_10+PADDING_5+IMAGE_WIDTH, PADDING_10*2+LABEL_HEIGHT_22, IMAGE_WIDTH, IMAGE_HEIGHT)];
        [self addSubview:_aImage2];
        
        _aImage3 = [[UIImageView alloc] initWithFrame:CGRectMake(PADDING_10+PADDING_5*2+IMAGE_WIDTH*2, PADDING_10*2+LABEL_HEIGHT_22, IMAGE_WIDTH, IMAGE_HEIGHT)];
        [self addSubview:_aImage3];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
